short int SendAlphaPageAdvanced(short int comport, short int baudRate, char* PagerNumber, char* PagerAccessNumber, char TypeOfProtocol, char* fileName, char* message, short int blockSize, char PulseDial);
Parameters
comport // Serial Commmunication port of your modem.
short int baudRate // The baudrate at which the alphanumeric protocols work is usually 1200.
PagerNumber //Phone number of your Pager.
PagerAccessNumber // Pin number of your Pager.
TypeOfProtocol //There are 2 protocols used in the Dll. Value of TypeOfProtocol should be 0 for Manual Entry protocol and 1 for Automatic Entry protocol.
fileName // If the message is exceeds 250 characters then you should use a text file containing the message.
message //Text message. Limit is 250 characters.
blockSize // Enter the max limit of characters your alphanumeric pager can accept. If the message is bigger than the blockSize then the message is broken at word boundaries and multiple pages are sent.
PulseDial //0 for Tone Dial and 1 for Pulse Dial.
Description
SendAlphaPageAdvanced is used to send text data to an alphanumeric Pager. This function offers
more options than the SendAlphaPage function. If a message is longer than the blocksize value
then multiple pages are sent. The message can be taken from a text file by specifying the name
in the fileName parameter.
Return Values
STRLEN_ERR Length of message string exceeds 250 .
INVALID_COMPORT Invalid com port number.
PARAMREQUIRED_ERR The PagerNumber or PagerAccessNumber value is missing.
MSG_ERR The message value is NULL .
BAUDRATE_ERR Invalid baudrate entry.
PROTOCOLTYPE_ERR Invalid value for the protocol.
BLOCKSIZE_ERR Invalid value for the blocksize.
COM_OPEN Error opening the com port.
CONNECT_ERR Error in connecting to the Paging Carrier company. Either the number is busy or the
right number was not given.
IDRECEIVE_ERR Failed to receive request for the PagerAccess number.
short int short int SendAlphaPageByEmail(char* hostName, char* senderAddr, char* RecipientAddr, char* MsgID, char* Subject , char* message,char* fileName, short int blockSize ); ;
Parameters
hostName // Name of the mail server. Limit is 50 characters.
senderAddr // Email address of the sender. Limit is 50 characters.
RecipientAddr // Email address of the recipient. Limit is 50 characters.
MsgID //Message Id of the Email. This parameter is optional. Limit is 50 characters.
Subject, // Subject of the Email. Limit is 50 characters.
message //Text message. Limit is 250 characters. If this parameter is used then fileName must be NULL.
fileName // If the message is exceeds 250 characters then you should use a text file
// containing the message. If this parameter is used then message must be NULL.
blockSize // Enter the max limit of characters your alphanumeric pager can accept. If the message is bigger than the blockSize then the message is broken at word boundaries and multiple pages are sent.
PulseDial //0 for Tone Dial and 1 for Pulse Dial.
Description
SendAlphaPageAdvanced is used to send text data to an alphanumeric Pager. This function offers
more options than the SendAlphaPage function. If a message is longer than the blocksize value
then multiple pages are sent. The message can be taken from a text file by specifying the name
in the fileName parameter.
Return Values
1 if successful
>0 Socket Error Code (The error code returned by the function WSAGetLastError())